package biz.obake.team.touchprotector.d.e;

import biz.obake.team.touchprotector.R;
import biz.obake.team.touchprotector.d.c;
import biz.obake.team.touchprotector.d.e.b;
import java.util.List;

public class a implements biz.obake.team.touchprotector.d.a, b.a, c.b {

    private class b {

        /* renamed from: a  reason: collision with root package name */
        boolean f1557a;

        /* renamed from: b  reason: collision with root package name */
        boolean f1558b;

        /* renamed from: c  reason: collision with root package name */
        boolean f1559c;

        /* renamed from: d  reason: collision with root package name */
        boolean f1560d;
        boolean e;
        boolean f;
        boolean g;
        boolean h;
        boolean i;
        boolean j;
        boolean k;
        boolean l;
        boolean m;
        boolean n;
        boolean o;

        private b(a aVar) {
            this.f1557a = "Locked".equals(biz.obake.team.touchprotector.g.c.c("TPService.State"));
            this.f1558b = biz.obake.team.touchprotector.g.a.g("unlock_back");
            this.f1559c = biz.obake.team.touchprotector.g.a.g("unlock_back_long");
            this.f1560d = biz.obake.team.touchprotector.g.a.g("unlock_volup");
            this.e = biz.obake.team.touchprotector.g.a.g("unlock_volup_long");
            this.f = biz.obake.team.touchprotector.g.a.g("unlock_volup_twice");
            this.g = biz.obake.team.touchprotector.g.a.g("unlock_voldown");
            this.h = biz.obake.team.touchprotector.g.a.g("unlock_voldown_long");
            this.i = biz.obake.team.touchprotector.g.a.g("unlock_voldown_twice");
            this.j = biz.obake.team.touchprotector.g.a.g("block_volume_keys");
            this.k = biz.obake.team.touchprotector.g.a.g("unlock_camera");
            this.l = biz.obake.team.touchprotector.g.a.g("unlock_camera_long");
            this.m = biz.obake.team.touchprotector.g.a.g("lock_volup_twice");
            this.n = biz.obake.team.touchprotector.g.a.g("lock_voldown_twice");
            this.o = biz.obake.team.touchprotector.g.a.g("toggle_sensor_volupdown");
        }
    }

    public void a(List<String> list) {
        b bVar = new b();
        if (bVar.f1560d) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_volup));
        }
        if (bVar.e) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_volup_long));
        }
        if (bVar.f) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_volup_twice));
        }
        if (bVar.g) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_voldown));
        }
        if (bVar.h) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_voldown_long));
        }
        if (bVar.i) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_voldown_twice));
        }
        if (bVar.k) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_camera));
        }
        if (bVar.l) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_camera_long));
        }
        if (bVar.f1558b) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_back));
        }
        if (bVar.f1559c) {
            list.add(biz.obake.team.touchprotector.c.w(R.string.key_unlockingway_back_long));
        }
    }

    /* JADX WARNING: Code restructure failed: missing block: B:59:0x00d9, code lost:
        r0 = false;
        r1 = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:64:0x00e8, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x00f1, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:72:0x00fa, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:76:0x0103, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:80:0x010c, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:84:0x0115, code lost:
        if (r0.j == false) goto L_0x0118;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:85:0x0118, code lost:
        r0 = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:86:0x011a, code lost:
        r0 = true;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:87:0x011b, code lost:
        r1 = r0;
        r0 = false;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:88:0x011d, code lost:
        r7 = r11;
     */
    /* JADX WARNING: Removed duplicated region for block: B:115:0x0165  */
    /* JADX WARNING: Removed duplicated region for block: B:117:0x016b  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public boolean b(java.lang.String r11) {
        /*
            r10 = this;
            biz.obake.team.touchprotector.d.e.a$b r0 = new biz.obake.team.touchprotector.d.e.a$b
            r1 = 0
            r0.<init>()
            boolean r1 = r0.f1557a
            java.lang.String r2 = "volup+voldown"
            java.lang.String r3 = "voldown.twice"
            java.lang.String r4 = "volup.twice"
            r5 = -1
            r6 = 2
            r7 = 0
            r8 = 1
            if (r1 == 0) goto L_0x011f
            int r1 = r11.hashCode()
            switch(r1) {
                case -1992600289: goto L_0x00ba;
                case -1516761668: goto L_0x00b0;
                case -1367751899: goto L_0x00a5;
                case -1087049262: goto L_0x009a;
                case 3015911: goto L_0x0090;
                case 97604824: goto L_0x0085;
                case 112389806: goto L_0x007b;
                case 232650216: goto L_0x0073;
                case 631917557: goto L_0x0069;
                case 653656559: goto L_0x0061;
                case 668832914: goto L_0x0055;
                case 853882392: goto L_0x004c;
                case 1289679651: goto L_0x0040;
                case 1332985185: goto L_0x0034;
                case 1960502485: goto L_0x0029;
                case 2013686693: goto L_0x001d;
                default: goto L_0x001b;
            }
        L_0x001b:
            goto L_0x00c4
        L_0x001d:
            java.lang.String r1 = "camera.long"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 11
            goto L_0x00c4
        L_0x0029:
            java.lang.String r1 = "voldown.long"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 4
            goto L_0x00c4
        L_0x0034:
            java.lang.String r1 = "back.twice"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 9
            goto L_0x00c4
        L_0x0040:
            java.lang.String r1 = "back.long"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 8
            goto L_0x00c4
        L_0x004c:
            boolean r11 = r11.equals(r2)
            if (r11 == 0) goto L_0x00c4
            r5 = 6
            goto L_0x00c4
        L_0x0055:
            java.lang.String r1 = "focus.twice"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 15
            goto L_0x00c4
        L_0x0061:
            boolean r11 = r11.equals(r3)
            if (r11 == 0) goto L_0x00c4
            r5 = 5
            goto L_0x00c4
        L_0x0069:
            java.lang.String r1 = "voldown"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 3
            goto L_0x00c4
        L_0x0073:
            boolean r11 = r11.equals(r4)
            if (r11 == 0) goto L_0x00c4
            r5 = 2
            goto L_0x00c4
        L_0x007b:
            java.lang.String r1 = "volup"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 0
            goto L_0x00c4
        L_0x0085:
            java.lang.String r1 = "focus"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 13
            goto L_0x00c4
        L_0x0090:
            java.lang.String r1 = "back"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 7
            goto L_0x00c4
        L_0x009a:
            java.lang.String r1 = "focus.long"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 14
            goto L_0x00c4
        L_0x00a5:
            java.lang.String r1 = "camera"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 10
            goto L_0x00c4
        L_0x00b0:
            java.lang.String r1 = "volup.long"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 1
            goto L_0x00c4
        L_0x00ba:
            java.lang.String r1 = "camera.twice"
            boolean r11 = r11.equals(r1)
            if (r11 == 0) goto L_0x00c4
            r5 = 12
        L_0x00c4:
            switch(r5) {
                case 0: goto L_0x010f;
                case 1: goto L_0x0106;
                case 2: goto L_0x00fd;
                case 3: goto L_0x00f4;
                case 4: goto L_0x00eb;
                case 5: goto L_0x00e2;
                case 6: goto L_0x00dc;
                case 7: goto L_0x00d7;
                case 8: goto L_0x00d4;
                case 9: goto L_0x00d2;
                case 10: goto L_0x00cf;
                case 11: goto L_0x00cc;
                case 12: goto L_0x00d2;
                case 13: goto L_0x00d2;
                case 14: goto L_0x00d2;
                case 15: goto L_0x00d2;
                default: goto L_0x00c7;
            }
        L_0x00c7:
            r11 = 0
            r0 = 0
            r1 = 0
            goto L_0x011d
        L_0x00cc:
            boolean r11 = r0.l
            goto L_0x00d9
        L_0x00cf:
            boolean r11 = r0.k
            goto L_0x00d9
        L_0x00d2:
            r11 = 0
            goto L_0x00d9
        L_0x00d4:
            boolean r11 = r0.f1559c
            goto L_0x00d9
        L_0x00d7:
            boolean r11 = r0.f1558b
        L_0x00d9:
            r0 = 0
            r1 = 1
            goto L_0x011d
        L_0x00dc:
            boolean r11 = r0.o
            r0 = r11
            r1 = r0
            r11 = 0
            goto L_0x011d
        L_0x00e2:
            boolean r11 = r0.i
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x00eb:
            boolean r11 = r0.h
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x00f4:
            boolean r11 = r0.g
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x00fd:
            boolean r11 = r0.f
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x0106:
            boolean r11 = r0.e
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x010f:
            boolean r11 = r0.f1560d
            if (r11 != 0) goto L_0x011a
            boolean r0 = r0.j
            if (r0 == 0) goto L_0x0118
            goto L_0x011a
        L_0x0118:
            r0 = 0
            goto L_0x011b
        L_0x011a:
            r0 = 1
        L_0x011b:
            r1 = r0
            r0 = 0
        L_0x011d:
            r7 = r11
            goto L_0x0158
        L_0x011f:
            int r1 = r11.hashCode()
            r9 = 232650216(0xdddf5e8, float:1.3679376E-30)
            if (r1 == r9) goto L_0x0143
            r4 = 653656559(0x26f601ef, float:1.7070203E-15)
            if (r1 == r4) goto L_0x013b
            r3 = 853882392(0x32e53618, float:2.6683708E-8)
            if (r1 == r3) goto L_0x0133
            goto L_0x014a
        L_0x0133:
            boolean r11 = r11.equals(r2)
            if (r11 == 0) goto L_0x014a
            r5 = 2
            goto L_0x014a
        L_0x013b:
            boolean r11 = r11.equals(r3)
            if (r11 == 0) goto L_0x014a
            r5 = 1
            goto L_0x014a
        L_0x0143:
            boolean r11 = r11.equals(r4)
            if (r11 == 0) goto L_0x014a
            r5 = 0
        L_0x014a:
            if (r5 == 0) goto L_0x015d
            if (r5 == r8) goto L_0x015a
            if (r5 == r6) goto L_0x0154
            r11 = 0
            r0 = 0
            r1 = 0
            goto L_0x0161
        L_0x0154:
            boolean r11 = r0.o
            r0 = r11
            r1 = r0
        L_0x0158:
            r11 = 0
            goto L_0x0161
        L_0x015a:
            boolean r11 = r0.n
            goto L_0x015f
        L_0x015d:
            boolean r11 = r0.m
        L_0x015f:
            r1 = r11
            r0 = 0
        L_0x0161:
            java.lang.String r2 = "Key"
            if (r7 == 0) goto L_0x016b
            java.lang.String r11 = "Unlock"
        L_0x0167:
            biz.obake.team.touchprotector.tpservice.TPService.k(r11, r2)
            goto L_0x017c
        L_0x016b:
            if (r11 == 0) goto L_0x0170
            java.lang.String r11 = "Lock"
            goto L_0x0167
        L_0x0170:
            if (r0 == 0) goto L_0x017c
            java.lang.String r11 = "Sensors.Paused"
            boolean r0 = biz.obake.team.touchprotector.g.c.b(r11)
            r0 = r0 ^ r8
            biz.obake.team.touchprotector.g.c.f(r11, r0)
        L_0x017c:
            return r1
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.d.e.a.b(java.lang.String):boolean");
    }

    public void start() {
        b.g(this);
    }

    public void stop() {
        b.i(this);
    }
}
